package cn.tedu.boyou.acticle.mapper;

import cn.tedu.boyou.acticle.domain.Sight;
import cn.tedu.boyou.common.query.SightQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SightMapper {
    int insert(Sight record);

    List<Sight> selectAll();

    List<Sight> selectForList(SightQuery qo);

    List<Sight> selectTop5(SightQuery qo);

    Sight selectByPrimarykey(Long sightId);

    /**
     * 根据目的地id查前指定个数的景点明细
     * @param destId
     * @param num
     * @return
     */
    List<Sight> selectByDestId(@Param("destId") Long destId, @Param("num") int num);

    Sight getCity(Long sightId);
}